<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
  <style type="text/css">
  /* tooltip */
  #tooltip{
    position:absolute;
    border:1px solid #ccc;
    background:#333;
    padding:2px;
    display:none;
    color:#fff;
  }
  </style>
</head>
<body style="padding:10px;">
  <div class="tplay-body-div">
    <!--<div class="layui-tab">-->
    <!--  <ul class="layui-tab-title">-->
    <!--    <li class="layui-this">回迁结算拆迁费用</li>-->
        <!-- <li><a href="{:url('admin/hqjiesuan/hqjiesuan_add')}" class="a_menu">拆迁费用结算</a></li> -->
    <!--  </ul>-->
    <!--</div> -->
      <!-- <form class="layui-form serch" action="{:url('admin/population/index')}" method="post">
        <div class="layui-form-item" style="float: left;">
          <div class="layui-input-inline">
            <input type="text" name="keywords" lay-verify="title" autocomplete="off" placeholder="请输入关键词" class="layui-input layui-btn-sm">
          </div>
          <button class="layui-btn layui-btn-danger layui-btn-sm chaxui" lay-submit="" lay-filter="serch">立即查询</button>
        </div>
      </form>  -->
    <table class="layui-table" lay-size="lg">
      <thead>
        <tr>
          <th align="center">序号</th>
          <th align="center">户主</th>
          <th align="center">拆迁户应得金额合计</th>
        </tr> 
      </thead>
      <tbody>
        {volist name="list" id="vo"}
        <tr>
          <td align="center">{$key+1}</td>
          <td align="center"><a href="{:url('admin/hqjiesuan/hqjiesuan_add',['id'=>$vo.id])}" style="color:blue">{$vo.name}</a></td>
          <td align="center">{$vo.jinesum}</td>
        </tr>
        {/volist}
      </tbody>
    </table>
    <div style="padding:0 20px;"></div> 
    {include file="public/foot"}
  </div>
  <script type="text/javascript">
    $('.delete').click(function(){
      var id = $(this).attr('id');
      layer.confirm('确定要删除?', function(index) {
        $.ajax({
          url:"{:url('admin/user/delete')}",
          data:{id:id},
          success:function(res) {
            layer.msg(res.msg);
            if(res.code == 1) {
                layer.alert('删除成功！',{icon:2});
                location.reload();
            }
          }
        })
      })
    })
    </script>
</body>
</html>